<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>合并导出</title>

    <script src="https://preview.babylonjs.com/babylon.js"></script>
    <script src="https://preview.babylonjs.com/loaders/babylon.glTF2FileLoader.js"></script>
    <script src="https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js"></script>
    <!-- <script src="https://preview.babylonjs.com/serializers/babylonjs.glTF2Serializer.min.js"></script> -->
    <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>

    <style>
      html,
      body {
        overflow: hidden;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
      }

      #renderCanvas {
        width: 100%;
        height: 100%;
        touch-action: none;
      }
      .btn {
        width: 80px;
        height: 30px;
        border: 1px solid red;
        background: yellowgreen;
        line-height: 30px;
        text-align: center;
        font-weight: 700;
      }
      .btn-l {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 999;
      }
      .btns {
        position: absolute;
        top: 10px;
        right: 200px;
        z-index: 999;
        display: flex;
      }
    </style>
  </head>
  <body>
    <div class="btn btn-l" onclick="myExport('1')">分别导出</div>
    <div class="btn btn-l" style="left: 100px" onclick="myExport('2')">
      导出-babylon
    </div>
    <canvas id="renderCanvas"></canvas>
  </body>
</html>
<script src="./js/index.js"></script>
